package com.zte.leave.model;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Absence {

  private String absenceid;
  private String leaveperson;
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date leavetime;
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date starttime;
  private String leavereson;
  private String status;
  @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date dealtime;
  private String dealperson;
  private String dealresult;


  public String getAbsenceid() {
    return absenceid;
  }

  public void setAbsenceid(String absenceid) {
    this.absenceid = absenceid;
  }


  public String getLeaveperson() {
    return leaveperson;
  }

  public void setLeaveperson(String leaveperson) {
    this.leaveperson = leaveperson;
  }


  public Date getLeavetime() {
    return leavetime;
  }

  public void setLeavetime(Date leavetime) {
    this.leavetime = leavetime;
  }


  public Date getStarttime() {
    return starttime;
  }

  public void setStarttime(Date starttime) {
    this.starttime = starttime;
  }


  public String getLeavereson() {
    return leavereson;
  }

  public void setLeavereson(String leavereson) {
    this.leavereson = leavereson;
  }


  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }


  public Date getDealtime() {
    return dealtime;
  }

  public void setDealtime(Date dealtime) {
    this.dealtime = dealtime;
  }


  public String getDealperson() {
    return dealperson;
  }

  public void setDealperson(String dealperson) {
    this.dealperson = dealperson;
  }


  public String getDealresult() {
    return dealresult;
  }

  public void setDealresult(String dealresult) {
    this.dealresult = dealresult;
  }

  public Absence() {
  }

  public Absence(String absenceid, String leaveperson, Date leavetime, Date starttime, String leavereson, String status, Date dealtime, String dealperson) {
    this.absenceid = absenceid;
    this.leaveperson = leaveperson;
    this.leavetime = leavetime;
    this.starttime = starttime;
    this.leavereson = leavereson;
    this.status = status;
    this.dealtime = dealtime;
    this.dealperson = dealperson;
  }

  public Absence(String absenceid, String leaveperson, Date leavetime, Date starttime, String leavereson, String status, Date dealtime, String dealperson, String dealresult) {
    this.absenceid = absenceid;
    this.leaveperson = leaveperson;
    this.leavetime = leavetime;
    this.starttime = starttime;
    this.leavereson = leavereson;
    this.status = status;
    this.dealtime = dealtime;
    this.dealperson = dealperson;
    this.dealresult = dealresult;
  }

  @Override
  public String toString() {
    return "Absence{" +
            "absenceid='" + absenceid + '\'' +
            ", leaveperson='" + leaveperson + '\'' +
            ", leavetime=" + leavetime +
            ", starttime=" + starttime +
            ", leavereson='" + leavereson + '\'' +
            ", status='" + status + '\'' +
            ", dealtime=" + dealtime +
            ", dealperson='" + dealperson + '\'' +
            ", dealresult='" + dealresult + '\'' +
            '}';
  }
}
